<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="Access-Control-Allow-Origin" content="*.ecorr.org">
    <link rel="dns-prefetch" href="/wwww.ecorr.org/">
    <title></title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link rel="stylesheet" type="text/css" href="/static/css/reset.css" />
    <link rel="stylesheet" type="text/css" href="/static/css/list_no2.css" />
    <script type="text/javascript" src="/static/js/jquery-2.1.1.min.js"></script>

</head>

<body>
    <div class="header inner_c">
        <h1 class="fl"><a href="/" target="_blank" title="数据管理系统" alt="数据管理系统">数据管理系统</a></h1>
        <!-- <form action="/s/e_search/search.php" accept-charset="utf-8" class="search" id="dw__search" method="get"
            role="search">
            <div class="soso fl">
                <div class="kuang_w fl">
                    <input type="text" id="qsearch__in" accesskey="f" name="q" title="[F]" class="kuang"
                        placeholder="请输入关键字">
                </div>
                <div class="sousuo_w fl">
                    <input type="button" class="sousuo" id="submit_ym">
                </div>
            </div>
            <input type="hidden" name="table_id" id="table_id" value="">
        </form> -->
    </div>
    <!-- 提交按钮jq -->
    <!-- <script type="text/javascript">
        $("#submit_ym").click(function () {
            $("#dw__search").submit();
        });
    </script> -->

    <div class="h10 cl"></div>
    <div class="wai">
        <div class="main">
            <!-- 目录 -->
            <div class="main_l fl" id="menu">

            </div>
            <!-- 内容 -->
            <div class="nei">
                <div class="main_m fl">
                    <div class="main_m_h" id="mbx">
                        <a href="/">首页</a>&nbsp;>&nbsp;<a href="/">元数据</a><span></span>
                    </div>
                    <!-- <div class="paixu">
                        库内数据表总量为&nbsp;<span>0</span>&nbsp;项
                    </div> -->
                    <ul class="kk_sjb" id="currentsonclasses">

                    </ul>
                </div>

                <div class="main_r fl">
                    <div class="hot">相关热搜词</div>
                    <ul class="lb1">
                    </ul>
                    <div class="hot">相关文章</div>
                    <ul class="lb2">
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!-- 底部的版权信息 -->
    <div class="footer">
        版权所有：国家材料环境腐蚀平台 京ICP备13025191号 京公网安备11010802015897号
    </div>
    <script type="text/javascript" src="/static/js/edataclass.js"></script>
    <script>
        // 获取url上的 classid
        var classid = 0;
        var query = window.location.search.substring(1);
        var vars = query.split("&");
        for (var i = 0; i < vars.length; i++) {
            var pair = vars[i].split("=");
            if (pair[0] == "classid") {
                classid = pair[1];
            }
        }

        // 无classid 跳转首页
        if (classid == 0) {
            window.location.href = "/";
        }

        makemenu(classid);
        currentsonclasses_str = "";
        // console.log(edataclass);
        edataclass.forEach(element => {
            if (element.id==classid) {
                element.children.forEach(elc => {
                    if (elc.children.length==0) {
                        currentsonclasses_str += '<li><a href="/datalist.html?classid=' + elc
                        .id + '">' + elc.classname + '<span>&#xe622;</span></a></li>';
                    } else {
                        currentsonclasses_str += '<li><a href="/edataclass.html?classid=' + elc
                            .id + '">' + elc.classname + '<span>&#xe622;</span></a></li>';
                    }
                })
                return false;
            } else {
                element.children.forEach(elc => {
                    if (elc.id==classid) {
                        elc.children.forEach(e => {
                            currentsonclasses_str += '<li><a href="/datalist.html?classid=' + e
                                .id + '">' + e.classname + '<span>&#xe622;</span></a></li>';
                        })
                        return false;
                    }
                });
            }
        });
        $("#currentsonclasses").append(currentsonclasses_str);
    </script>
</body>

</html>